<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cheshire-CSG: Translation Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Cheshire-CSG
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Translation Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Translation" --><!-- doxytag: inherits="Transfo" -->
<p><a class="el" href="class_translation.html" title="Translation class.">Translation</a> class.  
 <a href="class_translation.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="translation_8h_source.html">translation.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Translation:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_translation.png" usemap="#Translation_map" alt=""/>
  <map id="Translation_map" name="Translation_map">
<area href="class_transfo.html" title="Transfo class." alt="Transfo" shape="rect" coords="0,56,74,80"/>
<area href="class_node.html" title="Node class." alt="Node" shape="rect" coords="0,0,74,24"/>
</map>
 </div></div>

<p><a href="class_translation-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ecd9177ce516202fe010b47ef007265"></a><!-- doxytag: member="Translation::Translation" ref="a1ecd9177ce516202fe010b47ef007265" args="(Node *, const Vector)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Translation</b> (<a class="el" href="class_node.html">Node</a> *, const <a class="el" href="class_vector.html">Vector</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_translation.html#a4bd8b42e23e632d986b9b781d73676fa">Intersect</a> (const <a class="el" href="class_ray.html">Ray</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersecting function.  <a href="#a4bd8b42e23e632d986b9b781d73676fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_translation.html#aedd95cffebc575c47464090c4ac24c6f">Intersect</a> (const <a class="el" href="class_ray.html">Ray</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersecting function.  <a href="#aedd95cffebc575c47464090c4ac24c6f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_translation.html#a23217f05d1442f4f5fc7db511dd57434">PMC</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Containing function.  <a href="#a23217f05d1442f4f5fc7db511dd57434"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af54c9803dfefa1ec04c13a40daedb823"></a><!-- doxytag: member="Translation::getEmission" ref="af54c9803dfefa1ec04c13a40daedb823" args="()" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getEmission</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abdb54c49d261e8770d1d12119542fc1b"></a><!-- doxytag: member="Translation::getColor" ref="abdb54c49d261e8770d1d12119542fc1b" args="()" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getColor</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27c4202120108256e3f5cbc940d619b1"></a><!-- doxytag: member="Translation::getPosition" ref="a27c4202120108256e3f5cbc940d619b1" args="()" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getPosition</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae2dce5d15431d1a602dc763ebe615495"></a><!-- doxytag: member="Translation::getRefl" ref="ae2dce5d15431d1a602dc763ebe615495" args="()" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>getRefl</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeefc7fa602cd2eb815f1a9c06f1d4d0c"></a><!-- doxytag: member="Translation::getF" ref="aeefc7fa602cd2eb815f1a9c06f1d4d0c" args="()" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getF</b> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_translation.html" title="Translation class.">Translation</a> class. </p>
<p><a class="el" href="class_translation.html" title="Translation class.">Translation</a> is a transformation for the CSG </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4bd8b42e23e632d986b9b781d73676fa"></a><!-- doxytag: member="Translation::Intersect" ref="a4bd8b42e23e632d986b9b781d73676fa" args="(const Ray &amp;, Intersection &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Translation::Intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ray.html">Ray</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Intersecting function. </p>
<p>Compute the intersection between a translation and a ray</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ray</td><td>: the ray </td></tr>
    <tr><td class="paramname">t</td><td>: the intersection </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#ac0836475b7b0275dffe5ce89547f6852">Node</a>.</p>

</div>
</div>
<a class="anchor" id="aedd95cffebc575c47464090c4ac24c6f"></a><!-- doxytag: member="Translation::Intersect" ref="aedd95cffebc575c47464090c4ac24c6f" args="(const Ray &amp;, Intersection &amp;, Intersection &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Translation::Intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ray.html">Ray</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Intersecting function. </p>
<p>Compute the intersections between a translation and a ray</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ray</td><td>: the ray </td></tr>
    <tr><td class="paramname">t</td><td>: the first intersection </td></tr>
    <tr><td class="paramname">t2</td><td>: the second intersection </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#a8f308647523fba2603248b83149855a5">Node</a>.</p>

</div>
</div>
<a class="anchor" id="a23217f05d1442f4f5fc7db511dd57434"></a><!-- doxytag: member="Translation::PMC" ref="a23217f05d1442f4f5fc7db511dd57434" args="(const Vector &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Translation::PMC </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Containing function. </p>
<p>Checks if a point is inside the instance</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>: the point </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#aeecdf01a88be40840b65eb34cecc7a3c">Node</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>headers/<a class="el" href="translation_8h_source.html">translation.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 2 2011 17:01:12 for Cheshire-CSG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
